import 'package:flutter_deer/generated/json/base/json_convert_content.dart';
import 'package:flutter_deer/net/base_entity.dart';


FileUploadEntity $FileUploadEntityFromJson(Map<String, dynamic> json) {
  final FileUploadEntity fileUploadEntity = FileUploadEntity();
  final String? bucketName = jsonConvert.convert<String>(json['bucketName']);
  if (bucketName != null) {
    fileUploadEntity.bucketName = bucketName;
  }
  final String? fileName = jsonConvert.convert<String>(json['fileName']);
  if (fileName != null) {
    fileUploadEntity.fileName = fileName;
  }
  final String? url = jsonConvert.convert<String>(json['url']);
  if (url != null) {
    fileUploadEntity.url = url;
  }
  final String? originName = jsonConvert.convert<String>(json['originName']);
  if (originName != null) {
    fileUploadEntity.originName = originName;
  }
  final String? fileId = jsonConvert.convert<String>(json['fileId']);
  if (fileId != null) {
    fileUploadEntity.fileId = fileId;
  }
  return fileUploadEntity;
}

Map<String, dynamic> $FileUploadEntityToJson(FileUploadEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['bucketName'] = entity.bucketName;
  data['fileName'] = entity.fileName;
  data['url'] = entity.url;
  data['originName'] = entity.originName;
  data['fileId'] = entity.fileId;
  return data;
}